package com.yanqu.road.entity.log.cross.stronghold;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.ArrayList;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_ck_stronghold_pvp", desc = "商会据点战野外据点PVP日志", autoSave = true, uploadCk = true, isCross = true)
public class LogStrongholdPvp extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "事件id")
    private int eventId;
    @FieldTypeAnnotation(desc = "据点名称")
    private String wildName;
    @FieldTypeAnnotation(desc = "出战门客id")
    private int patronsId;
    @FieldTypeAnnotation(desc = "造成伤害")
    private String damage;
    @FieldTypeAnnotation(desc = "是否击杀")
    private boolean kill;
    @FieldTypeAnnotation(desc = "对方玩家id")
    private long enemyUserId;
    @FieldTypeAnnotation(desc = "剩余血量")
    private String lastBlood;
    @FieldTypeAnnotation(desc = "抢夺宝箱 [357;0, 2969;1] [宝箱id;宝箱类型，宝箱id;宝箱类型]")
    private List<String> boxList = new ArrayList<>();
    @FieldTypeAnnotation(desc = "返回池中的宝箱")
    private List<String> returnBoxList = new ArrayList<>();
    @FieldTypeAnnotation(desc = "获得积分")
    private int rewardPoints;

    public LogStrongholdPvp(long userId, int activityId, int eventId, String wildName, int patronsId, String damage, boolean kill, long enemyUserId, String lastBlood, List<String> boxList, List<String> returnBoxList, int rewardPoints) {
        this.userId = userId;
        this.activityId = activityId;
        this.eventId = eventId;
        this.wildName = wildName;
        this.patronsId = patronsId;
        this.damage = damage;
        this.kill = kill;
        this.enemyUserId = enemyUserId;
        this.lastBlood = lastBlood;
        this.boxList = boxList;
        this.returnBoxList = returnBoxList;
        this.rewardPoints = rewardPoints;
    }

    public long getUserId() {
        return userId;
    }

}
